home *** CD-ROM | disk | FTP | other *** search
- /*
- * Name: GOPHER EXEC
- * Purpose: VM InterNet Gopher client "wrapper" EXEC
- * Author: Rick Troth, Rice University, Information Systems
- * Date: 1992-Dec-23
- *
- * Note: Tailor this locally to your own OBTAIN/DROP conventions
- *
- * Note: Thanks to Nick LaFlamme for the linemode catcher.
- */
-
- Parse Source system .
- If system ^= "CMS" Then Do
- Say "CMS Gopher does not run on" system
- Exit -1
- End /* If .. Do */
-
- Address "COMMAND"
-
- 'PIPE COMMAND QUERY DISPLAY'
- If rc ^= 0 Then Do
- drc = rc
- 'XMITMSG 523'
- Say "CMS Gopher requires a full-screen terminal."
- Exit drc
- End /* If .. Do */
-
- 'STATE GOPCLI EXEC *' /* this is how we access */
- If rc ^= 0 Then 'EXEC OBTAIN GOPHER' /* applications on RICEVM1 */
-
- 'GLOBALV SELECT GOPHER GET HOST'
- If host = "" Then host = "cwis.rice.edu"
- 'GLOBALV SELECT GOPHER PUTP HOST'
-
- 'GLOBALV SELECT GOPHER GET NAME'
- If name = "" Then
- name = "RiceInfo"
- /* name = "Rice University Campus-Wide Information System" */
- 'GLOBALV SELECT GOPHER PUTP NAME'
-
- Parse Arg argstring
- 'EXEC GOPCLI' argstring
-
- /* 'EXEC DROP GOPHER' */
-
- Exit rc
-
-